﻿using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyGiaoVuService.ReportServices
{
    public class HocKyReportService : IHocKyReportService
    {
        private IHocKyRepository _hocKyrepository;

        public HocKyReportService(IHocKyRepository hocKyRepository)
        {
            _hocKyrepository = hocKyRepository;
        }

        public IEnumerable<QuanLyGiaoVuDAL.DTO.HocKyDTO> GetAllHocKy()
        {
            return _hocKyrepository.GetAllHocKy();
        }

        public QuanLyGiaoVuDAL.DTO.HocKyDTO GetHocKyById(Guid id)
        {
            return _hocKyrepository.GetHocKyById(id);
        }


        public IEnumerable<QuanLyGiaoVuDAL.DTO.NamHocDTO> GetAllNamHoc()
        {
            return _hocKyrepository.GetAllNamHoc();
        }

        public QuanLyGiaoVuDAL.DTO.NamHocDTO GetNamHocById(Guid id)
        {
            return _hocKyrepository.GetNamHocById(id);
        }
    }
}
